// pages/personal/detailed/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    hidden: true,
    list: [
      { "img": "/images/heed.jpg", "name": "Chen", "rg": "3", "shs": "申诉", "qrrg": "确认认购" },
      { "img": "/images/heed.jpg", "name": "Chen", "rg": "3", "shs": "申诉", "qrrg": "确认认购" },
      { "img": "/images/heed.jpg", "name": "Chen", "rg": "3", "tg": "已通过" },
      { "img": "/images/heed.jpg", "name": "Chen", "rg": "3", "tg": "已通过" },
      { "img": "/images/heed.jpg", "name": "Chen", "rg": "3", "tg": "已通过" },
    ],

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    //   这里要非常注意，微信的scroll-view必须要设置高度才能监听滚动事件，所以，需要在页面的onLoad事件中给scroll-view的高度赋值
    var that = this;
    wx.getSystemInfo({
      success: function (res) {
        console.info(res.windowHeight);
        that.setData({
          scrollHeight: res.windowHeight
        });
      }
    });
  },
  //滚动到底部触发事件  
  searchScrollLower: function () {
    let that = this;
    var listPush;
    var list = this.data.list;

    // 显示加载中
    that.setData({
      hidden: false
    });

    // 下拉新增的数据 
    listPush = [
      { "img": "/images/heed.jpg", "name": "Chen", "rg": "3", "shs": "申诉", "qrrg": "确认认购" }
    ]
    that.setData({
      hidden: true,
      list: list.concat(listPush)
    });
    console.log("fff");

  },
  take: function (e) {
    console.log(e);
    var i = e.currentTarget.dataset.id;
    console.log(i);
    this.setData({
      gk: i
    })
  },




  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})